#include "ForUSBDriver.h"
#include <>
#pragma comment(lib, "C:\\Driver\\lib\\MyPacketProcessor.lib")
extern HANDLE CompletionPort;

void main(void)
{
	HANDLE hTh, hUSBSimulator = NULL;
	DWORD dwThreadId, dwBytesReturned;
  
	
	if ((hTh = CreateThread(NULL, 0, WorkerThread, NULL, 0, &dwThreadId)) == NULL)
	{
			cout<<("Error CreateThread: %d\n", GetLastError());
			CloseHandle(hTh);
			return;
	}
	getch();

	PostQueuedCompletionStatus(CompletionPort, 0, NULL, NULL); 
	CloseHandle(hUSBSimulator);

}